/**
 * 人员信息维护
 */
import Layout from '@/layout'
import AppMain from '@/layout/components/AppMain'

const personInfoMaintenance = {
  path: '/personInfoMaintenance',
  component: Layout,
  redirect: '/personInfoMaintenance/personChangeInsert',
  name: 'personInfoMaintenance',
  meta: {
    title: '人员信息维护',
    icon: 'el-icon-s-flag',
    roles: ['admin', 'editor'] // you can set roles in root nav
  },
  children: [
    {
      path: 'personChangeEdit',
      component: () => import('@/views/personInfoMaintenance/personChangeEdit'),
      name: 'personChangeEdit',
      meta: {
        title: '人员变动编辑',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'personChangeAudit',
      component: () => import('@/views/personInfoMaintenance/personChangeAudit'),
      name: 'personChangeAudit',
      meta: {
        title: '人员变动审核',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'IDCardCheck',
      component: AppMain,
      name: 'IDCardCheck',
      meta: {
        title: '身份证核对',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor']
      },
      children: [
        {
          path: 'IDCardUnitCheck',
          component: () => import('@/views/personInfoMaintenance/IDCardCheck/IDCardUnitCheck'),
          name: 'IDCardUnitCheck',
          meta: {
            title: '身份证单位核对',
            icon: 'el-icon-s-flag',
            roles: ['admin', 'editor']
          }
        },
        {
          path: 'IDCardCheckAudit',
          component: () => import('@/views/personInfoMaintenance/IDCardCheck/IDCardCheckAudit'),
          name: 'IDCardCheckAudit',
          meta: {
            title: '身份证核对审核',
            icon: 'el-icon-s-flag',
            roles: ['admin', 'editor']
          }
        }
      ]
    },
    {
      path: 'archiveQuery',
      component: () => import('@/views/personInfoMaintenance/archiveQuery'),
      name: 'archiveQuery',
      meta: {
        title: '档案查询',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor']
      }
    }
  ]
}

export default personInfoMaintenance
